# Contributor: Dmitry Zakharchenko <dmitz@disroot.org>
# Maintainer: Dmitry Zakharchenko <dmitz@disroot.org>
pkgname=py3-grequests
_pkgname=grequests
pkgver=0.6.0
pkgrel=0
pkgdesc="Asynchronus HTTP requests with gevent"
url="https://github.com/spyoungtech/grequests"
arch="noarch"
license="BSD-2-Clause"
depends="python3 py3-gevent py3-requests"
makedepends="py3-setuptools"
checkdepends="py3-nose"
source="$_pkgname-$pkgver.tar.gz::https://github.com/spyoungtech/grequests/archive/v$pkgver.tar.gz"
builddir="$srcdir/$_pkgname-$pkgver"

build() {
	python3 setup.py build
}

check() {
	nosetests
}

package() {
	python3 setup.py install --prefix=/usr --root="$pkgdir"
}

sha512sums="
0c635dfc21a9c8d276a7428fd8c01079292a59c6755aa10b76722fafe38e01f622b02a44692335ecc0914ab17b6b3b6806b87092b4293ee9e324536fee55a8ad  grequests-0.6.0.tar.gz
"
